<template>
  <el-config-provider :locale="localeLanguage">
    <transition name="el-fade-in">
      <quick-start-tips v-if="store.quickStart.tipsPopup" />
    </transition>
    <router-view />
  </el-config-provider>

</template>

<script setup lang="ts">

import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { dataSetStore } from 'src/stores/dataSet'
import quickStartTips from 'src/components/quickStartTips.vue'

import { useAuthStore } from 'src/stores/auth';
import { useI18n } from 'vue-i18n';
const authStore = useAuthStore();
let { locale, t } = useI18n({ useScope: 'global' });
const store = dataSetStore();
locale.value = authStore.systemLanguage;
let localeLanguage = zhCn;

//因为侧边栏设置为2才能跳转到项目信息列表
//刷新界面列表确是按照index进行排列分布的
if (store.menuOpen > 0) {
  if (store.isRefresh) {
    store.setMenuOpen(Number(store.menuOpen));
  } else {
    store.setIsFresh(true);
    store.setMenuOpen(Number(store.menuOpen) - 1);
  }
}

</script>
<style lang="scss">
.q-layout__shadow:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.1), inset 0 0px 0px rgba(0, 0, 0, 0.24);
}

</style>
